package com.sanyu.lovefishing.data;

import com.lyf.core.data.net.RetrofitFactory;
import com.lyf.core.rx.BaseFunc;
import com.lyf.core.rx.ObservableHelp;
import com.sanyu.lovefishing.bean.WeatherBean;

import java.io.File;
import java.util.List;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;


public class ApiRepository {
    /**
     * 首页banner
     *
     * @return
     */
    public Observable<WeatherBean> getTodayWeather(double lat, double lon, String appid) {
        return ObservableHelp.excute(RetrofitFactory.getInstance()
                .create(ApplicationApi.class).getTodayWeather(lat,lon,appid).flatMap(new BaseFunc<>()));
    }


}
